package de.wepner.texteditor.model.event;


/**
 * <p>An {@link Event}s listener.</p>
 * 
 * @author Richard Wepner
 * @param <TElement> the event containing class
 * @param <TParam> the callback parameters, e. g. event arguments
 */
public interface EventListener<TElement, TParam> {
    
    /**
     * <p>Gets called when the {@link Event} occurred.</p>
     * 
     * @param self the reference to the event containing object
     * @param param the event arguments
     */
    abstract public void eventOccurred(TElement self, TParam param);
}
